﻿namespace YK.Console.Business.DataDictItems;

/// <summary>
/// 数据字典子项输入
/// </summary>
public class DataDictItemInput
{
    /// <summary>
    /// 字典唯一编码
    /// </summary>
    [Required,MaxLength(32)]
    public string Code { get; set; }

    /// <summary>
    /// 字典值(同一编码下唯一)
    /// </summary>
    [Required,MaxLength(64)]
    public string Value { get; set; }

    /// <summary>
    /// 排序号
    /// </summary>
    [Required]
    public int Sort { get; set; }

    /// <summary>
    /// 样式
    /// </summary>
    [Required,MaxLength(128)]
    public string ThemeStyle { get; set; }

    /// <summary>
    /// 描述
    /// </summary>
    [MaxLength(512)]
    public string? Remark { get; set; }

    /// <summary>
    /// 启用状态
    /// </summary>
    [Required]
    public EnabledStatusEnum Enabled { get; set; }
}
